helpstring("Retrieves handle of window containing a specified point"),
]
HWND WINAPI WindowFromPoint(long x, long y);
[
usesgetlasterror,
entry("ChildWindowFromPoint"),
helpstring("Determines which if any child window of given window contains a specified point"),
]
HWND WINAPI ChildWindowFromPoint(HWND hwnd, long x, long y);
// ****** Window query and enumeration ******
[
usesgetlasterror,
entry("GetDesktopWindow"),
helpstring("Returns handle of desktop window"),
]
HWND WINAPI GetDesktopWindow();
[
usesgetlasterror,
#ifdef UNICODE
entry("FindWindowW"),
#else
entry("FindWindowA"),
#endif
helpstring("Finds a window by its class name and title"),
]
HWND WINAPI FindWindow(LPCTSTR lpszClassName,
LPCTSTR lpszWindow);
[
usesgetlasterror,
entry("EnumWindows"),
helpstring("Enumerates all top-level windows on the screen by passing the handle of each window, in turn, to an application-defined callback function"),
helpstring("Enumerates the child windows that belong to the specified parent window by passing the handle of each child window, in turn, to an application-defined callback function"),
]
BOOL WINAPI EnumChildWindows(HWND hWndParent,
WNDENUMPROC lpEnumFunction,
LPARAM lParam);
[
usesgetlasterror,
entry("GetTopWindow"),
helpstring("Gets handle of window at the top of the Z-order of a specified child window"),
]
HWND WINAPI GetTopWindow(HWND hwnd);
[
usesgetlasterror,
entry("GetWindow"),
helpstring("Gets handle of window with specified relationship (GW_HWNDFIRST, GW_HWNDLAST, GW_HWNDNEXT, GW_HWNDPREV, GW_OWNER, GW_CHILD)"),
]
HWND WINAPI GetWindow(HWND hwnd, UINT uCmd);
[
usesgetlasterror,
entry("GetNextWindow"),
helpstring("Gets handle of next (GW_HWNDNEXT) or previous (GW_HWNDPREV) window in the Z-order"),
helpstring("Inserts new item with ID idNewItem and content lpNewItem into menu hMenu before item idItem according to fuFlags"),
]
BOOL WINAPI InsertMenu(HMENU hMenu, UINT idItem,
UINT fuFlags, UINT idNewItem,
LPCTSTR lpNewItem);
[
usesgetlasterror,
#ifdef UNICODE
entry("AppendMenuW"),
#else
entry("AppendMenuA"),
#endif
helpstring("Appends new item with ID idNewItem and content lpNewItem to the end of menu hMenu according to fuFlags"),
]
BOOL WINAPI AppendMenu(HMENU hMenu, UINT fuFlags,
UINT idNewItem, LPCTSTR lpNewItem);
[
usesgetlasterror,
#ifdef UNICODE
entry("ModifyMenuW"),
#else
entry("ModifyMenuA"),
#endif
helpstring("Modifies item with ID idItem of menu hMenu to ID idNewItem and content lpNewItem according to fuFlags"),
]
BOOL WINAPI ModifyMenu(HMENU hMenu, UINT idItem,
UINT fuFlags, UINT idNewItem,
LPCTSTR lpNewItem);
[
usesgetlasterror,
entry("RemoveMenu"),
helpstring("Deletes item with ID idItem (according to fuFlags) from menu hMenu"),
]
BOOL WINAPI RemoveMenu(HMENU hMenu, UINT idItem,
UINT fuFlags);
[
usesgetlasterror,
entry("DeleteMenu"),
helpstring("Removes a popup menu item with ID idItem (according to fuFlags) from menu hMenu (should come from GetSubMenu) without deleting menu handle"),